package com.meituan.mapper;
import com.meituan.domain.Sex;

import com.meituan.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper {
    int insert(@Param("pojo") User user);

    int insertSelective(@Param("pojo") User user);

    int insertList(@Param("pojo") List<User> user);

    int update(@Param("pojo") User user);

    List<User> findBySex(@Param("sex")Sex sex);

    Long findByUsername(@Param("username")String username);

    User findById(@Param("id")Long id);

    Integer count(@Param("username")String username);


}
